<template>
  <div class="head">
  	  <div class="left" v-if='$route.meta.show'>
  	  	<img src="../../../kbc/h5/img/css/index/logo.png" width="80px" />
  	  </div>
  	  <div v-else class="left" v-on:click="go">
  	  	<i class="iconfont">&#xe624;</i>
  	  </div>
  	  <h1>{{$store.state.headings}}</h1>
	</div>
  </div>
</template>
<script>
	import router from './../../router';
	import util from "./../../js/util/util.js"
	export default {
		data() {
			return {
				isShow: false,
				items: [{
						"title": "首页",
						"pagePath": "/Index",
						"iconPath": "icon-shouye",
					},
					/*{
             "title":"订单",
             "pagePath":"/order",
             "iconPath":"icon-dingdan",
           },*/
					{
						"title": "交易中心",
						"pagePath": "/user",
						"iconPath": "icon-jiaoyizhongxin",
					}, {
						"title": "钱包",
						"pagePath": "/thewallet",
						"iconPath": "icon-qianbao",
					}, {
						"title": "我的",
						"pagePath": "/user",
						"iconPath": "icon-gerenzhongxinxia",
					}
				]
			}
		},
		methods: {
			go: function() { //处理返回信息
				router.go(-1); //返回上一页
			},
			get: function(url) {
				util.pushRouter(router, url, {})
			}
		}
	}
</script>
<style>
	.head{ width: 100%; height:4rem; line-height:4rem; z-index: 999; position:fixed; top:0; left: 0; margin: 0 auto;background:#4556c4; text-align: center; font-size: 14px;}
	.head h1{font-size:1.3rem; width: 100%; color: #fff;}
	.head .left{position: absolute; top:0;left:1rem; color: #fff;}
	.head .left i{font-size:1.4rem;}
	.head .right{position: absolute;top:0;right:1rem; color: #fff;font-size:2.2rem;}
	
  .head-anv{position:fixed; top:4rem;left:0;margin: 0;padding: 0; background-color: #eee; display: flex; width: 100%;border-top:1px solid #dfdfdf;}
  .head-anv>div{width:33.333%;padding:5px 0;font-size:1.3rem; display:flex; float: left; text-align: center;flex-direction: column; color: #888;line-height: 29px;}
  .head-anv>div>i{font-size:2rem; padding: 0;}
  .head-anv>div.on{ color:#00CC66;}
</style>
